package spring.boot.demo.cloudgateway.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import spring.boot.demo.cloudgateway.filter.ElapsedGatewayFilterFactory;
import spring.boot.demo.cloudgateway.filter.TokenFilter;

@Configuration
public class BeansConf {

    @Bean
    public TokenFilter tokenFilter(){
        return new TokenFilter();
    }

    @Bean
    public ElapsedGatewayFilterFactory elapsedGatewayFilterFactory() {
        return new ElapsedGatewayFilterFactory();
    }
}
